<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '订单列表';
$this->params['breadcrumbs'][] = $this->title;
?>
            <style>
                body{
                    background: #f9f9f9;
                }
                .registerform li{
                    padding-bottom:25px;
                    zoom: 1;
                    overflow: hidden;
                }
                .registerform .label{
                    display:block;
                    width:73px;
                    margin: 0;
                    font-size: 14px;
                    color: #444444;
                    padding-top: 4px;
                    padding-right: 5px;
                    float: left;
                    text-align: right;
                }
                .registerform .inputxt{
                    border: 1px solid #d2d2d2;
                    width:200px;
                    float: left;
                }
                .action{
                    margin-top: 10px;
                }
                .Validform_checktip{
                    height: 33px;
                    line-height: 33px;
                    margin-left: 0;
                }
                .yzmsubinput{
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius:5px;
                    background-color: #da444d;
                }
                .yzmsub{
                    padding-left: 82px;
                }
                .adspae{
                    font-size: 14px;
                    color: #999999;
                    margin-left: 10px;
                    vertical-align: middle;
                }
                .rightdiv{
                    width: 680px;
                }
                .rwidt{
                    width: 660px;
                }
                .syseoninp2{
                    width: 60px;
                }
                .sqtabwidt tr td a{
                    color: #5c7db5;
                }
				.
            </style>
                <div class="rwidt">
                    <div class="rigtable">
                        <h3 class="grh3tit">订单管理</h3>
						<?php if(isset($data)){ ?>
                        <div class="sqform pl15 pr15">
                            <div class="sysearch clearFloat">
                                            <span class="syseone ml5">
                                                订单类型：
                                                <span class="grsele">
                                                    <img src="/images/grseicon.png" alt="" class="grseic"/>
                                                    <select name="" class="grsewidt">
                                                        <option value="">所有类型</option>
                                                    </select>
                                                </span>
                                            </span>
                                            <span class="syseone ml5">
                                                支付状态：
                                                <span class="grsele">
                                                    <img src="/images/grseicon.png" alt="" class="grseic"/>
                                                    <select name="" class="grsewidt">
                                                        <option value="">所有状态</option>
                                                    </select>
                                                </span>
                                            </span>
                                            <span class="syseone">
                                                时间范围 ：<input type="text" class="syseoninp2"/> 至 <input type="text" class="syseoninp2"/>
                                            </span>
                                <span><input type="submit" value="查询" class="sysbmi"/></span>
                            </div>
                        </div>
                        <div class="sqtable">
                            <table class="sqtabwidt">
                                <tr>
                                    <th width="22%">
                                        <input type="checkbox" class="inchw"/>订单号
                                    </th>
                                    <th width="14%">
                                        产品
                                    </th>
                                    <th width="10%">
                                        类型
                                    </th>
                                    <th width="12%">
                                        创建时间
                                    </th>
                                    <th width="12%">
                                        支付时间
                                    </th>
                                    <th width="10%">
                                        状态
                                    </th>
                                    <th width="8%">
                                        金额
                                    </th>
                                    <th width="7%">
                                        操作
                                    </th>
                                </tr>
                                <tr>
                                    <?php foreach ($data as $k => $val) {?>
                                    <td>
                                        <input type="checkbox"  class="inchw"/><?=$val['ordersn']?>
                                    </td>
                                    <td>
                                        <?=$val['name']?>
                                    </td>
                                    <td>
                                        <?=$val['payway']?>
                                    </td>
                                    <td>
                                        <?=$val['created_at']?>
                                    </td>
                                    <td>
                                        <?=$val['updated_at']?>
                                    </td>
                                    <td>
                                        <span class="text-3e9829"><?=$val['status']?></span>
                                    </td>
                                    <td>
                                        ￥<?=$val['paymoney']?>
                                    </td>
                                    <td>
                                        <a href="<?= yii\helpers\Url::to(['finance/orderinfo','id'=>$val["id"]]);?>">详情</a>
                                    </td>
                                </tr>
                                <?php } ?>
                                <tr>
                                    <td>
                                        
                                    </td>
									<?php if(!$data) ?>
                                    <td  colspan="7">
                                        <div class="page">
                                            <span>共有100条，每页显示：10条</span>&nbsp;&nbsp;&nbsp;
                                            <a href=""><<</a><a href="" class="paactive">1</a><a href="">2</a><a href="">3</a><a href="">4</a><a href="">>></a>&nbsp;&nbsp;
                                            <input type="text" class="painput"/>&nbsp;&nbsp;
                                            <a href="" class="pagesub">GO</a>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
						<?php } ?>
						<?php if(isset($information)){ ?>
							<div class="sqform pl15 pr15">
								<?=$information?>
							</div>
						<?php } ?>
                    </div>
                </div>